﻿using Interview.Model.Enum;
using System;
using System.Collections.Generic;

namespace EventSubscriptionExample
{
    // 事件参数类
    public class ElectricalStatusEventArgs : EventArgs
    {
        public string Name { get; }
        public ElectricalStatusEnum OldStatus { get; }
        public ElectricalStatusEnum NewStatus { get; }

        public ElectricalStatusEventArgs(string Name, ElectricalStatusEnum OldStatus,ElectricalStatusEnum NewStatus)
        {
            this.Name = Name;
            this.OldStatus = OldStatus;
            this.NewStatus = NewStatus;
        }
    }
}